import '../public/pwd'

let app = new Vue({
  el: '#countDown',
  data: {
    time: 3
  },
  mounted: function () {

    this.count_down()

  },
  methods: {
    count_down: function () {
      let timer;

      timer = setInterval(() => {

        if( app.$data.time === 1 ){

          clearInterval(timer)
          timer = null;
          window.location.href = '../index.html'

        }

        app.$data.time --;
      }, 1000)
    }
  }
})

